<?php

/**
 * 微信配置
 */
return [
    //AppID
    'app_id' => 'wx0763924b70c283ef',
    //appid
    'miniapp_id' => 'wx0763924b70c283ef',
    //AppSecret
    'app_secret' => 'cbaea10dca781e650d177a8258b0a348',
    //小程序授权的url
    'auth_url' => "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code",
    //商户号
    'mch_id' => '1600140259',
    //API密钥
    'key' => 'shijiu19shijiu19shijiu19shijiu19',
    //预约回调
    'notify_url' => 'https://nineteen.lclook.com/api/payment/notify',
    //开通会员回调
    'notify_url_vip' => 'https://nineteen.lclook.com/api/recharges/payment',
    //商品名称
    'body' => '预约服务',
    //证书
    'cert_client' => EXTEND_PATH.('/cert/apiclient_cert.pem'),
    'cert_key'    => EXTEND_PATH.('/cert/apiclient_key.pem'),
    //日志
    'log' => [
        'file' => RUNTIME_PATH.'/log/wechat_pay.log'
    ],
    //获取access_token的url
    'access_token_url' => "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s",
    //获取小程序码url
    'or_code' => "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=%s",
    //发送订阅消息
    'send_subscribe_message_url' => "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=%s",
    //订阅模板消息ID
    'template_id' => '1GN9D3Tkt1tkYoE5YSgj7YOY2HgCr9FbyAduPWCDKMI',
    //自主买单回调
    'notify_user_payment' => 'https://nineteen.lclook.com/api/user-payment/notify/result'
];
